#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int getcount(void){
	static int a=123;
	for(;a<=987;++a){
		if(a/100==a/10%10)continue;
		if(a/100==a%10)continue;
		if(a%10==a/10%10)continue;
		if(a%10==0)continue;
		if(a/10%10==0)continue;
		return a++;
	}
	return 0;
}
bool check(double x,double y,double z){
		int a=(int)x,b=(int)y,c=(int)z;
		vector<int> digit;
		digit.push_back(0);
		if(y-b!=0&&z-c!=0)return false;
		if(y>987)return false;
		if(z>987)return false;

		digit.push_back(a/100);
		digit.push_back(a/10%10);
		digit.push_back(a%10);
		if(find(digit.begin(),digit.end(),b/100)==digit.end())digit.push_back(b/100);else return false;
		if(find(digit.begin(),digit.end(),b/10%10)==digit.end())digit.push_back(b/10%10);else return false;
		if(find(digit.begin(),digit.end(),b%10)==digit.end())digit.push_back(b%10);else return false;

		if(find(digit.begin(),digit.end(),c/100)==digit.end())digit.push_back(c/100);else return false;
		if(find(digit.begin(),digit.end(),c/10%10)==digit.end())digit.push_back(b/10%10);else return false;
		if(find(digit.begin(),digit.end(),c%10)==digit.end())return true;else return false;

}
int main(void){
	double a,b,c,x,y,z;
	bool sign=false;
	cin>>a>>b>>c;
	for(int i=getcount();i;i=getcount()){
		x=i;
		y=x/a*b;
		z=x/a*c;
		if(check(x,y,z)){
			cout<<x<<' '<<y<<' '<<z<<endl;
			sign=true;
		}
	}
	if(!sign)cout<<"No!!!";
	return 0;
}
